import baseUrl from './base-url-config'

const { product: prefix } = baseUrl

export default {
  // 查询访视列表
  visitList: {
    url: `${prefix}/edc/builder/project/visit/list`,
    method: 'get',
  },
  // 新建访视列表
  visitCreate: {
    url: `${prefix}/edc/builder/project/visit/create`,
    method: 'post',
  },
  // 编辑访视列表
  visitUpdate: {
    url: `${prefix}/edc/builder/project/visit/update`,
    method: 'put',
  },
  // 删除访视列表
  visitDelete: {
    url: `${prefix}/edc/builder/project/visit/delete`,
    method: 'delete',
  },
  // 查询访视表列表
  visitTableList: {
    url: `${prefix}/edc/builder/project/visit/table/list`,
    method: 'get',
  },
  // 新建访视列表
  visitTableCreate: {
    url: `${prefix}/edc/builder/project/visit/table/save`,
    method: 'post',
  },
  // 编辑访视列表
  visitTableUpdate: {
    url: `${prefix}/edc/builder/project/visit/table/update`,
    method: 'put',
  },
  // 删除访视列表
  visitTableDelete: {
    url: `${prefix}/edc/builder/project/visit/table/delete`,
    method: 'delete',
  },
  // 查询访视表字段选择
  visitTableFieldSelect: {
    url: `${prefix}/edc/builder/project/visit/table/visitTableFieldSelect`,
    method: 'get',
  },
  // 查询角色
  roleQuery: {
    url: `${prefix}/edc/sys/role/query`,
    method: 'GET',
  },
  // 查询casebook列表
  visitCasebookList: {
    url: `${prefix}/edc/builder/project/visit/casebook/list`,
    method: 'get',
  },
  // 查询casebook显示条件选择
  visitCasebookShowConditions: {
    url: `${prefix}/edc/builder/project/visit/casebook/showConditions`,
    method: 'get',
  },
  // 当前的Casebook配置
  nowCasebookConfig: {
    url: `${prefix}/edc/builder/project/visit/casebook/nowCasebookConfig`,
    method: 'get',
  },
  // 新增或者修改casebook
  visitSaveOrUpdate: {
    url: `${prefix}/edc/builder/project/visit/casebook/saveOrUpdate`,
    method: 'post',
  },
  // 访视表获取字段
  getTableField: {
    url: `${prefix}/edc/builder/project/visit/table/getTableField`,
    method: 'post',
  },
  // 删除访视casebook
  visitCasebookDelete: {
    url: `${prefix}/edc/builder/project/visit/casebook/delete`,
    method: 'delete',
  },
  // 获取访视基线表
  visitBaselineTable: {
    url: `${prefix}/edc/builder/project/visit/baselineTable`,
    method: 'get',
  },

  // 访视排序
  visitSortChange: {
    url: `${prefix}/edc/builder/project/visit/sortNumChange`,
    method: 'put',
  },

  // 访视表排序
  visitTableSortChange: {
    url: `${prefix}/edc/builder/project/visit/table/sortNumChange`,
    method: 'put',
  },

  // 访视表排序
  casebookSortChange: {
    url: `${prefix}/edc/builder/project/visit/casebook/sortNumChange`,
    method: 'put',
  },
}
